#include "mainwindow.h"
#include "musicwindow.h"
#include <QApplication>
#include <qscreen.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    QScreen *screen = QGuiApplication::primaryScreen();
    QRect rect = screen->geometry();//获取屏幕
    int width = rect.width();
    int height = rect.height();
    w.resize(width/10*3,height/10*3);//处理界面的大小
    w.setStatusBar(nullptr);// 移除状态栏
    w.setWindowFlags(Qt::FramelessWindowHint);//去除状态栏
    w.setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);//主界面居中
    w.setFixedSize(w.size());//固定大小
    w.show();

    return a.exec();
}
